package d1_midterm_examination.d1_firstquestion;

//用对象封装没一个囚犯的数据
public class People {

    private int number;//编号
    private int location;//站位

    public People() {
    }

    public People(int number, int location) {
        this.number = number;
        this.location = location;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getLocation() {
        return location;
    }

    public void setLocation(int location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "People{" +
                "number=" + number +
                ", location=" + location +
                '}';
    }
}
